require.config({
    baseUrl: "js",
    paths: {
        jquery: "jquery-2.1.4.min",
        bootstrap: "bootstrap.min",
        text: "text",
        artTemplate: "template-web",
        common: "common/common",
        layer: "layer/layer",
        swiper: "swiper/swiper-4.2.2.min",
        lazyload: "lazyload",
        scroll: "scroll"
    },
    shim: {
        bootstrap: {
            deps: ["jquery"],
            exports: 'bootstrap'
        },
        layer: {
            deps: ["jquery"]
        },
        lazyload: {
            deps: ["jquery"]
        },
        scroll: {
            deps: ["jquery"]
        }
    }
});

require(["jquery", "artTemplate", "common", "app/test1","app/test2","layer"],
    function ($, art, common, test1,test2) {
        $("div.top-nav .btn1").on("click",function(){
            test1()
        })
        $("div.top-nav .btn2").on("click",function(){
            test2()
        })

    });